<?php
/**
 * Created by PhpStorm.
 * User: Weizehua
 * Date: 8/9/2016
 * Time: 15:34
 */
$path = "../a/worm.php";
$path_to_document_root = dirname($_SERVER['PHP_SELF']) . "/$path";
$url = "http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}$path_to_document_root";
echo $url;
